import Immutable from 'immutable'
export const increase = (state = {}, action) => {
    // console.log(state);
    switch (action.type) {
        case 'NUM_INCREASE':
            return { ...state,
                count: action.payload
            }
        case 'NUM_NEWNUM':
            return {
                ...state,
                num: Math.floor(Math.random() * 10000000000000)
            }
        default:
            return state
    }
}
